// 
// 
// 

#include <Keypad.h>
#include <dummy.h>
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char hexaKeys[ROWS][COLS] = 
{
	{ 'D', 'C', 'B', 'A' },
	{ '#', '9', '6', '3' },
	{ '0', '8', '5', '2' },
	{ '*', '7', '4', '1' }
};
byte rowPins[ROWS] = { 14, 0, 4, 5 }; //connect to the row pinouts of the keypad
byte colPins[COLS] = { 1, 3, 13, 12}; //connect to the column pinouts of the keypad

//initialize an instance of class NewKeypad
Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);

char KeyBoard_Get_Char()
{
	char keyTmp = customKeypad.getKey();
	if (keyTmp == NO_KEY)
		return '$';
	return keyTmp;
}



